<el-tabs v-model="activeName" @tab-click="handleTabClick" style="width: 780px;" stretch>
  <el-tab-pane name="1">
                          <span slot="label"> //添加图标的主要代码部分
                              <span class="tabStyle">
                                  <i class="el-icon-basic-on" v-if="activeName==='1'"></i>
                                  <i class="el-icon-basic-off" v-else></i>
                              </span>
                              <span style="display: block">基础信息</span>
                          </span>
    <div>
      <el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="ruleForm">
        <el-form-item label="座机号码：" prop="pass" class="formStyle">
          <el-input type="password" v-model="ruleForm.pass" autocomplete="off" style="width: 380px"
                    placeholder="请输入座机号码"></el-input>
          <div class="prompt"><span class="prompt-content">选填</span></div>
        </el-form-item>
        <el-form-item label="邮箱地址：" prop="age" class="formStyle">
          <el-input v-model.number="ruleForm.age" style="width: 380px" placeholder="请输入邮箱地址"></el-input>
          <div class="prompt"><span class="prompt-content">选填</span></div>
        </el-form-item>
        <el-form-item style="margin-top: 90px;text-align: center">
          <el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
        </el-form-item>
      </el-form>
    </div>
  </el-tab-pane>
<el-tab-pane name="2">
                        <span slot="label">
                            <span class="tabStyle">
                                <i class="el-icon-contact-on" v-if="activeName==='2'"></i>
                                <i class="el-icon-contact-off" v-else></i>
                            </span>
                            <span style="display: block">联系方式</span>
                        </span>
</el-tab-pane>
<el-tab-pane name="3">
                        <span slot="label">
                            <span class="tabStyle">
                                <i class="el-icon-bank-on" v-if="activeName==='3'"></i>
                                <i class="el-icon-bank-off" v-else></i>
                            </span>
                            <span style="display: block">银行信息</span>
                        </span>
</el-tab-pane>
<el-tab-pane name="4">
                        <span slot="label">
                            <span class="tabStyle">
                                <i class="el-icon-safety-on" v-if="activeName==='4'"></i>
                                <i class="el-icon-safety-off" v-else></i>
                            </span>
                            <span style="display: block">登录信息</span>
                        </span>
</el-tab-pane>
</el-tabs>
